namespace Admin2025.Domain.Entities;

public abstract class EntityBase
{
  public Guid Id { get; set; }
  public string? Code { get; set; }// Stu24000001

  public bool IsActived { get; set; } = true;
  public bool IsDeleted { get; set; } = false;

  public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
  public DateTime UpdatedAt { get; set; } = DateTime.UtcNow;
  // 其所有位都为零，表示一个空的 Guid。Guid.Empty:表示如果没有显式设置该属性的值，它将默认为一个空的 Guid。 
  public Guid CreatedBy { get; set; } = Guid.Empty;
  public Guid UpdatedBy { get; set; } = Guid.Empty;

  public int DisplayOrder { get; set; }

  public string? Remarks { get; set; }
}